package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 问题表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-08-31
 */
@TableName("wz_question")
public class WzQuestion extends Model<WzQuestion> {

    private static final long serialVersionUID = 1L;

    /**
     * 问题id
     */
    @TableId(value = "question_id", type = IdType.AUTO)
    private Long questionId;
    /**
     * 问卷id
     */
    @TableField("questionnaire_id")
    private Long questionnaireId;
    /**
     * 问题
     */
    private String question;
    /**
     * 类型：3-调查问卷；4-商家问卷;5-广告提问;
     */
    private Integer type;
    /**
     * 问题类型：1-文字单选；2-图文单选；3-文字多选；4-图文多选；
     */
    @TableField("question_type")
    private Integer questionType;
    /**
     * 发布用户编号
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 发布类型：1、后台发布；2-用户发布
     */
    @TableField("publishing_type")
    private Integer publishingType;
    /**
     * 状态：1-待使用；2-使用中；3-审核中；4-发布中；5-下架；
     */
    private Integer status;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;
    /**
     * 最近修改时间
     */
    @TableField("update_time")
    private Date updateTime;
    /**
     * 后台修改人id
     */
    @TableField("modifier_id")
    private Integer modifierId;
    /**
     * 管理员名字
     */
    @TableField("modifier_name")
    private String modifierName;
    /**
     * 是否显示统计:0-不统计;1-统计;
     */
    @TableField("is_statistics")
    private Integer isStatistics;
    /**
     * 删除标记:0-否1-是
     */
    @TableField("del_flag")
    private Integer delFlag;


    public Long getQuestionId() {
        return questionId;
    }

    public void setQuestionId(Long questionId) {
        this.questionId = questionId;
    }

    public Long getQuestionnaireId() {
        return questionnaireId;
    }

    public void setQuestionnaireId(Long questionnaireId) {
        this.questionnaireId = questionnaireId;
    }

    public String getQuestion() {
        return question;
    }

    public void setQuestion(String question) {
        this.question = question;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getQuestionType() {
        return questionType;
    }

    public void setQuestionType(Integer questionType) {
        this.questionType = questionType;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Integer getPublishingType() {
        return publishingType;
    }

    public void setPublishingType(Integer publishingType) {
        this.publishingType = publishingType;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Integer getModifierId() {
        return modifierId;
    }

    public void setModifierId(Integer modifierId) {
        this.modifierId = modifierId;
    }

    public String getModifierName() {
        return modifierName;
    }

    public void setModifierName(String modifierName) {
        this.modifierName = modifierName;
    }

    public Integer getIsStatistics() {
        return isStatistics;
    }

    public void setIsStatistics(Integer isStatistics) {
        this.isStatistics = isStatistics;
    }

    public Integer getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(Integer delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    protected Serializable pkVal() {
        return this.questionId;
    }

    @Override
    public String toString() {
        return "WzQuestion{" +
        "questionId=" + questionId +
        ", questionnaireId=" + questionnaireId +
        ", question=" + question +
        ", type=" + type +
        ", questionType=" + questionType +
        ", userCode=" + userCode +
        ", publishingType=" + publishingType +
        ", status=" + status +
        ", sort=" + sort +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", modifierId=" + modifierId +
        ", modifierName=" + modifierName +
        ", isStatistics=" + isStatistics +
        ", delFlag=" + delFlag +
        "}";
    }
}
